﻿cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(sxsdk)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )   #设置c++编译器
find_package(PCL  REQUIRED)

include_directories(${PCL_INCLUDE_DIRS}) 
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable(sxsdk sxsdk.cpp)
add_library(Basicpcl Basicpcl.cpp)
target_link_libraries(sxsdk ${PCL_LIBRARIES})
target_link_libraries(sxsdk  Basicpcl)
#header files
include_directories(
    ./inc/)

#link share lib  连接跟环境更改

target_link_libraries(sxsdk /home/t/yue-yang/SXSDK/lib/libMPSizectorS_API.so)

#已经把lib/libMPSizectorS_API.2.10.1.so  改成 /home/t/yue-yang/SXSDK/lib/libMPSizectorS_API.so
